#ifndef UPLOADLISTHANDLE_H_
#define UPLOADLISTHANDLE_H_
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include "type.h"
#include "buf_misc.h"
#define MAX_LIST 5
#define MAX_OLD_LIST 3
typedef struct {
    U32	uptime;
    I32 startId;
    I32 endId;
    I32 timerId;
    bool isWaittingRsp;
    bool isOldData;
} UPLOADLIST;

typedef struct {
   UPLOADLIST list[MAX_LIST];
} LISTGROUD;
void setListUptime(U32 *time, U32 *listUptime, I32 type);
void initListGroud();
bool noUsingList(I32 type);
UPLOADLIST *getNotUsedList(I32 type);
UPLOADLIST *oldDataGetNotUseList(I32 type);
UPLOADLIST *searchListByTimeId(I32 timerId, I32 type);
UPLOADLIST *RestListByUptime(U32 uptime, I32 type);


#endif
